package decorator;

public class FoodDecorator extends IWatchFilm {

    private IWatchFilm iWatchFilm;
    public FoodDecorator(IWatchFilm iWatchFilm){
        this.iWatchFilm = iWatchFilm;
    }

    public IWatchFilm getiWatchFilm() {
        return iWatchFilm;
    }

    public void setiWatchFilm(IWatchFilm iWatchFilm) {
        this.iWatchFilm = iWatchFilm;
    }

    @Override
    public void watchFilm() {
        System.out.println("吃大餐");
        iWatchFilm.watchFilm();
    }

}
